package com.yeyks.config.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文档表
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DocInfo对象", description="文档表")
public class DocInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("gmt_modified")
    private Date gmtModified;

    @ApiModelProperty(value = "title")
    @TableField("caption")
    private String caption;

    @TableField("content")
    private String content;

    @ApiModelProperty(value = "是否是分类信息,1代表分类，0代表内容")
    @TableField("directory")
    private Boolean directory;

    @ApiModelProperty(value = "父文档")
    @TableField("parent")
    private Integer parent;


    public static final String ID = "id";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    public static final String CAPTION = "caption";

    public static final String CONTENT = "content";

    public static final String DIRECTORY = "directory";

    public static final String PARENT = "parent";

}
